package com.tan.common.mapstruct.user;

import com.tan.common.domain.user.SysUser;
import com.tan.common.dto.user.UserCreateDto;
import com.tan.common.dto.user.UserUpdateDto;
import com.tan.common.vo.user.UserPages;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author Tan
 * @description
 * @date 2025/2/6
 */
@Mapper
public interface UserConvert{
    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);
    UserPages userToUserPage(SysUser user);

    List<UserPages> userToUserPages(List<SysUser> users);

    SysUser createUserDtoToUser(UserCreateDto user);


    SysUser updateUserDtoToUser(UserUpdateDto user);
}
